<?php
namespace app\common\model;

class SysRoleModel extends BaseModel
{   
    protected $table = 'next_sys_role';

    public function searchRoleNameAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('role_name', $value);
        }
    }
}